@layout("/common/_form.html",{js:["/assets/sale/sale_edit.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<form class="layui-form" id="saleForm" lay-filter="saleForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="saleId" type="hidden"/>
                    <div id="basicForm">
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <span class="layui-badge layui-bg-green">基本信息</span>
                                </div>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">销售备注</label>
                            <div class="layui-input-block">
                                <input id="remark" name="remark" placeholder="请输入" type="text"
                                       class="layui-input"/>
                            </div>
                        </div>
                    </div>

                    <!--            产品                    -->

                    <div id="productForm">
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <span class="layui-badge layui-bg-green">产品</span>
                                </div>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">产品<span id="product_tip"></span></label>
                            <div class="layui-input-block">
                                <select name="productIds" xm-select="productSelect">
                                    <option value="">请选择产品</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div id="productItemList"></div>


<!--                    付款方式 -->
                    <div id="payWayForm">
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <span class="layui-badge layui-bg-green">付款方式</span>
                                </div>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6">
                            <label class="layui-form-label">付款方式</label>
                            <div class="layui-input-block">
                                <input type="radio" name="payWay" value="0" title="现金">
                                <input type="radio" name="payWay" value="1" title="月结">
                            </div>
                        </div>
                    </div>

<!--                    人员-->
                    <div id="workerForm">
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <span class="layui-badge layui-bg-green">人员</span>
                                </div>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">执行人员</label>
                            <div class="layui-input-block">
                                <input id="worker" name="worker" type="hidden" class="layui-input"/>
                                <select name="worker" id="workerSelect" lay-filter="workerSelect">

                                </select>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">客戶</label>
                            <div class="layui-input-block">
                                <input id="client" name="client" type="hidden"
                                       class="layui-input"/>
                                <select name="client" id="clientSelect"
                                        lay-filter="clientSelect">

                                </select>

                            </div>
                        </div>
                    </div>
                <!--养殖场-->
                    <div id="farmForm">
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <span class="layui-badge layui-bg-green">养殖场</span>
                                </div>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">养殖场</label>
                            <div class="layui-input-block">
                                <input id="farmId" name="farmId" type="hidden" class="layui-input"/>
                                <select name="farmId" id="farmSelect" lay-filter="farmSelect">

                                </select>

                            </div>
                        </div>
                        <input id="farmName" name="farmName" type="hidden" class="layui-input"/>
                    </div>


                    <!--                    总价 -->
                    <div id="totalPirceForm">
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <span class="layui-badge layui-bg-red">总价</span>
                                </div>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">全部总价(元)</label>
                            <div class="layui-input-block">
                                <input id="totalPrice" name="totalPrice" placeholder="请输入" type="text"
                                       class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit id="comfireButton" type="button">&emsp;确认&emsp;
        </button>
        <button type="reset" class="layui-btn layui-btn-primary" id="backupPage">&emsp;返回&emsp;</button>
    </div>

</form>

@}